package com.pansoft.openplanet.bean;

/**
 * 货币单位
 * @autor yqs
 * @date 2019/2/18 11:12
 **/
public class CurrencyUnitBean {
    //单位 CNY USD TWD 等
    private String unit;
    private boolean isSelected;

    private CurrencyUnitBean(Builder builder) {
        unit = builder.unit;
        isSelected = builder.isSelected;
    }

    public String getUnit() {
        return unit;
    }

    public CurrencyUnitBean setUnit(String unit) {
        this.unit = unit;
        return this;
    }

    public boolean isSelected() {
        return isSelected;
    }

    public CurrencyUnitBean setSelected(boolean selected) {
        isSelected = selected;
        return this;
    }

    public static final class Builder {
        private String unit;
        private boolean isSelected;

        public Builder() {
        }

        public Builder unit(String val) {
            unit = val;
            return this;
        }

        public Builder isSelected(boolean val) {
            isSelected = val;
            return this;
        }

        public CurrencyUnitBean build() {
            return new CurrencyUnitBean(this);
        }
    }

}

